package com.vcc.data.entity;


import com.mybatisflex.annotation.Column;
import com.mybatisflex.annotation.Table;
import com.vcc.data.base.entity.BaseEntity;
import lombok.*;

import java.io.Serializable;
import java.math.BigDecimal;

@EqualsAndHashCode(callSuper = true)
@Data
@Setter
@Getter
@Table(value = "vcc_transfer_order")
@Builder
@AllArgsConstructor
@NoArgsConstructor
public class TransferOrder extends BaseEntity implements Serializable {

    @Column(comment = "订单号", value = "order_id")
    private String orderId;

    @Column(comment = "操作类型 in 入账 out 出账", value = "type")
    private String type;

    @Column(comment = "用户id", value = "user_id")
    private Long userId;

    @Column(comment = "钱包", value = "wallet_id")
    private Long walletId;

    @Column(comment = "金额", value = "amount")
    private BigDecimal amount;

    @Column(comment = "状态 2 等待 1 失败 0 成功", value = "status")
    private Integer status;

    @Column(comment = "备注", value = "remark")
    private String remark;

    @Column(comment = "币种", value = "currency")
    private String currency;

    @Column(comment = "操作人Id", value = "operate_id")
    private Long operateId; // 操作人ID

}


//根据上面的实体类生成对应的建表SQL

